<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
    <title>购物车</title>
    <style>
        .el-form-item__label {
            height: 60px;
        }
        a {
            font-size: 20px;
            text-decoration: none;
            color: black;
        }

        #app {
            width: 1080px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div id="app">
    <el-container>
        <el-header height="150px">
            <div style="width:1080px;margin: 0 auto;">

                <img src="imgs/logo.png" style="width: 400px;height:100px;vertical-align: middle" alt="">
                <div style="float: right;font-size: 15px;position: relative;top: 0;right: 0"><span>欢迎xxx回来 </span></div>
                <div style="float: right;padding-right: 10px;position: relative;top:20px;right: 0px">
                    <a href="">购物车</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">我的账户</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">新用户注册</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">我要登录</a>
                    <el-divider direction="vertical"></el-divider>
                    <a href="">帮助中心</a></el-divider>
                </div>
                <div style="background-color: #f6f205;">
                    <el-menu style="background-color: #f3f0b5;width: 1050px"
                             :default-active="activeIndex" class="el-menu-demo" mode="horizontal"
                             @select="handleSelect">
                        <el-menu-item index="1">处理中心</el-menu-item>
                        <el-menu-item index="2">处理中心</el-menu-item>
                        <el-menu-item index="3">处理中心</el-menu-item>
                        <div style="float: right;position: relative;top: 10px">
                            <el-input placeholder="请输入搜索内容">
                                <el-button slot="append" icon="el-icon-search" @click="search()"></el-button>
                            </el-input>
                        </div>
                    </el-menu>
                </div>
            </div>
        </el-header>
        <el-main>

            <el-card class="box-card">
                <div style="width:1080px;margin: 0 auto;">
                    <img src="">
                    <p>你的购物车</p>
                    <div>
                        <template>
                            <el-table
                                    :data="tableData"
                                    style="width: 1080px;margin: 0 auto">
                                <el-table-column
                                        prop="index"
                                        label="序号"
                                        width="180">
                                </el-table-column>
                                <el-table-column
                                        prop="name"
                                        label="书名"
                                        width="180">
                                </el-table-column>
                                <el-table-column
                                        prop="price"
                                        label="价格"
                                        width="180">
                                </el-table-column>

                                <el-table-column
                                        prop="category"
                                        label="类别"
                                        width="180">
                                </el-table-column>

                                <el-table-column
                                        prop="num"
                                        label="数量"
                                        width="100">

                                </el-table-column>
                                <el-table-column
                                        prop="money"
                                        label="小计"
                                        width="100">
                                </el-table-column>
                                <el-table-column
                                        label="操作">
                                    <el-button type="warning" style="margin-right: 10px">删除</el-button>
                                </el-table-column>
                            </el-table>
                        </template>
                    </div>
                    <div>
                        <p style="position: relative;font-weight: bold;font-size: 20px;height: 10px;color:#e56666;">合计:xx元</p>
                    </div>
                </div>
                <el-button type="primary" style="float: right;margin-right: 20px;">结账</el-button>
                <el-button type="danger" style="float: right;margin-right: 20px;">继续购物</el-button>
            </el-card>


        </el-main>
        <el-footer>
            <img style="width: 100%;height: 50px" src="imgs/foot.jpg" alt="">
            <div style="background-color: #3f3f3f;padding:30px 0;text-align: center;color: #b1b1b1">
                <p>Copyright @ 重庆互联网学院 重庆市渝北区华山南路 JSD2207
                </p>
                <p>达内在线WWW.TMOOC.CN 专注于IT职业技能培训</p>
                <p>涵盖20余门课程体系，致力于打造权威的IT职业教育学习平台</p>
            </div>
        </el-footer>
    </el-container>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<!-- import axios -->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function () {
            return {
                count: "",
                activeIndex: '1',
                tableData: [{
                    index: '1',
                    name: 'java',
                    price: '44.5',
                    category: "计算机",
                    num: '1',
                    money: "44.5"
                }, {
                    index: '2',
                    name: 'java',
                    price: '44.5',
                    category: "计算机",
                    num: '1',
                    money: "44.5"
                }, {
                    index: '3',
                    name: 'java',
                    price: '44.5',
                    category: "计算机",
                    num: '1',
                    money: "44.5"
                }, {
                    index: '4',
                    name: 'java',
                    price: '44.5',
                    category: "计算机",
                    num: '1',
                    money: "44.5"
                }]
            }
        },
        methods: {
            handleSelect() {

            }
        }
    })
</script>
</html>